import { defineConfig } from 'vite';
import iframeCommunicationPlugin from 'vite-plugin-iframe-communicator';

export default defineConfig({
  server: {
    host: '0.0.0.0',
    port: 23974,
    allowedHosts: true,
    strictPort: true
  },
  plugins: [
    iframeCommunicationPlugin({
      hostOrigin: 'https://23973.d.d8d.fun' // Trusted host origin
    })
  ]
});